<?php

/*
 * This is to enter entry into vaccin table.
 */
include '../../include/config.php';
mysql_query("insert into baby_user_vaccins (`sr`,`bid`,`vcc_name`,`first_vaccin`,`recall_date`,`date_2_recall`,`date_3_recall`) values (NULL,'".$_COOKIE['bid']."','".$_POST['vcc_name']."','".$_POST['first_vaccin']."','".date('Y-m-d', strtotime($_POST['recall_date']))."','".date('Y-m-d', strtotime($_POST['date_2_recall']))."','".date('Y-m-d', strtotime($_POST['date_3_recall']))."') ") or die(mysql_error());
echo 'ok';
$rl = '../view/Vaccinations';
header("Location:$rl");

?>
